package com.ruoyi.quartz.task;

import com.ruoyi.channel.service.IChannelBaseInfoService;
import com.ruoyi.db.mapper.ChannelBaseInfoMapper;
import com.ruoyi.merchant.service.IMerchantDataPushInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.time.LocalDate;

@Component("updateChannelTypeTask")
public class UpdateChannelTypeTask {

    @Autowired
    IChannelBaseInfoService channelBaseInfoService;
    public void updateList(){

        try {
            int  i = channelBaseInfoService.updateList();
            System.out.println("任务执行成功===="+i+"条");
        } catch (Exception e) {
            System.err.println("任务执行失败======"+e);
            throw new RuntimeException(e);
        }

    }

    public void updateAuth(){
        try {
            int  i = channelBaseInfoService.updateAuth();
            System.out.println("任务执行成功===="+i+"条");
        } catch (Exception e) {
            System.err.println("任务执行失败======"+e);
            throw new RuntimeException(e);
        }

    }
}
